package com.quartz.com.observer;

import java.util.ArrayList;
import java.util.List;

public class BeingObserver {
    int status=0;
    List<Observer> observerList=new ArrayList<>();
    public void addObserver(Observer observer){
        observerList.add(observer);
    }

    public void excutes(){
        for(Observer observer:observerList){
            observer.order();
        }
    }
}
